/*
 * @Descripttion: 核酸宝项目前端
 * @version: 
 * @Author: 杜宇轩
 * @Date: 2022-05-11 21:42:49
 * @LastEditors: 杜宇轩
 * @LastEditTime: 2022-05-22 06:22:18
 */
const Mock = require('mockjs');

const mockFiles = require.context('./modules/', false, /^.*\.js$/);
const mocks = [];
mockFiles.keys().forEach(fileName => {
  if (fileName !== './index.js') {
    const item = mockFiles(fileName);
    mocks.push(...item.default);
  }
});

mocks.forEach(item => {
    Mock.mock(item.url, item.type, item.response);
})
